package com.zcx.mall.oauth.constant;

import lombok.Getter;

public class OauthBizConstant {

    @Getter
    public static enum Whether {

        WAIT("0","未处理"),
        SUC("1","成功"),
        FAIL("2","失败");
        private String value;

        private String label;

        private Whether(String value,String label) {
            this.value = value;
            this.label = label;
        }
    }


    @Getter
    public static enum SmsType {

        REGISTER("0","注册"),
        FORGET("1","忘记密码"),
        UPDATE_PWD("2","修改密码");
        private String value;

        private String label;

        private SmsType(String value,String label) {
            this.value = value;
            this.label = label;
        }

        public static SmsType getSmsType(String value) {
            for (SmsType smsType: SmsType.values()) {
                if (value.equals(smsType.getValue())) {
                    return smsType;
                }
            }
            return null;
        }
    }
}
